/**
 * Created by CodeTlan.
 * User: Ing. Miguel Salas
 * Date: 3/29/12
 * Time: 10:59 PM
 */
Ext.define('CT.view.historial.PanelFoto',{
    extend:'Ext.panel.Panel',
    alias:'widget.panelfoto',
    itemId:'panelFotos',
    collapsed: true,
    collapsible:true,
    collapseDirection:'right',
    title:'Fotos',
    iconCls:'photo',
    autoScroll:true,
    items:[{xtype:'viewfotos'}],
    initComponent: function(){
        this.bbar=this.buildBbar();
        this.callParent(arguments);
    },
    tbar:{
        xtype:'button',
        text:'Agregar fotos',
        iconCls:'add',
        action:'addFotos'
    },
    buildBbar:function(){
        var paging=Ext.create('Ext.toolbar.Paging',{
            store: 'Fotos',
            displayInfo: true
        });
        return paging;
    }
});